首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏全栈程序员必看

    PHP mail

    PHP mail() 函数 PHP mail() 函数用于从脚本中发送电子邮件。 语法 mail(to,subject,message,headers,parameters) 参数 描述 to 必需。 请在我们的 PHP Mail 参考手册阅读更多内容。 PHP 简易 E-Mail 通过 PHP 发送电子邮件的最简单的方式是发送一封文本 email。 "Mail Sent > PHP Mail Form 通过 PHP,您能够在自己的站点制作一个反馈表单。下面的例子向指定的 e-mail 地址发送了一条文本消息: <html> <body> <! php mail(“123456@qq.com”,”Test mail function of PHP.”,”hello world!

    4.5K10编辑于 2022-07-15
  • 来自专栏给时光以生命

    Java Mail

    import javax.mail.Session; import javax.mail.Transport; import javax.mail.internet.InternetAddress; import javax.mail.internet.MimeMessage; import java.util.Date; import java.util.Properties; public class Main ", "smtp"); // 发件人的邮箱的 SMTP 服务器地址 props.setProperty("mail.smtp.host", myEmailSMTPHost ("mail.smtp.socketFactory.port", smtpPort); //SSL配置结束,不采用SSL连接注释上段即可 // 2. Subject: 邮件主题 message.setSubject("Java Mail测试", "UTF-8"); // 5.

    1.3K10编辑于 2022-10-25
  • 来自专栏LanceToBigData

    SpringBoot整合Mail

    spring.mail.password=授权码 spring.mail.properties.mail.smtp.auth=true spring.mail.properties.mail.smtp.starttls.enable =true spring.mail.properties.mail.smtp.starttls.required=true spring.mail.default-encoding=UTF-8 2)163 邮箱配置 spring.mail.host=smtp.163.com spring.mail.username=用户163邮箱 spring.mail.password=邮箱密码 spring.mail.properties.mail.smtp.auth =true spring.mail.properties.mail.smtp.starttls.enable=true spring.mail.properties.mail.smtp.starttls.required =true spring.mail.default-encoding=UTF-8 二、实现过程 2.1 配置文件 spring: #邮箱配置 mail: host: smtp.qq.com

    1.7K10发布于 2018-08-02
  • 来自专栏技术博文

    mail邮件类

    = "" && $this->mailHTML == "" && $this->mailAttachments == ""){ return mail($this->mailTo,$this->mailSubject $bodyBoundary. "--"; //发送邮件 echo $this->mailTo; return mail($this->mailTo,$this->mailSubject, "", $attachmentBoundary. "--"; return mail($this->mailTo,$this->mailSubject, "",$mailHeader); } return

    2K90发布于 2018-04-10
  • 来自专栏python3

    Flask-Mail

    /usr/bin/python #coding=utf-8 from flask import Flask from flask_mail import Mail, Message app = Flask(__name__) # 设置邮箱的配置信息 app.config['MAIL_PORT'] = 465 app.config['MAIL_USE_SSL'] = True app.config ['MAIL_USERNAME'] = '小号111账号名' app.config['MAIL_SERVER'] = 'smtp.qq.com' app.config['MAIL_PASSWORD'] = '小号授权码' # 初始化邮箱实例 mail = Mail(app) @app.route('/', ) def index(): # 邮件消息对象 msg = Message 官方:https://pythonhosted.org/Flask-Mail/

    1.1K30发布于 2020-01-19
  • 来自专栏sktj

    python mail 收发

    server = poplib.POP3(mailserver) server.user(mailuser) # connect, log in to mail print returned greeting message msgCount, msgBytes = server.stat() print('There are', msgCount, 'mail i+1) # octets is byte count for line in message: print(line.decode()) # retrieve, print all mail print('-' * 80) # mail text is bytes in 3.x if i < msgCount - 1: input('[Press Enter key]') # mail box locked till quit finally:

    99540编辑于 2022-05-13
  • 来自专栏LoRexxar's Blog

    Roundcube mail 3 Xss

    empty($username)) { return $username; } // Current username is an e-mail address strpos($_SESSION['username'], '@')) { $username = $_SESSION['username']; } // get e-mail /program/lib/roundcube/rcube_user.php lime 648 $rcube->user = $user_instance; $mail_domain = $rcube- >config->mail_domain($data['host']); $user_name = $data['user_name']; $user_email = $data['user_email $user : sprintf('%s@%s', $data['user'], $mail_domain); } $email_list[] = $user_email; }

    1K20编辑于 2023-02-21
  • 来自专栏python3

    Parse Mail Header fo

    headers[i]=unicode(text, default, errors='replace') return u"".join(headers) obj = imaplib.IMAP4('mail.sohu.com msg.get('X-Sender', '') if "<" in sender: sender = re.search(r'<(.*)>',sender).group(1) print "Mail's subject is %s" % subject print "Mail's ip is %s" % ip print "Mail's from_address is %s" % from_address print "Mail's sender is %s" % sender

    1.1K10发布于 2020-01-13
  • 来自专栏LoRexxar's Blog

    Roundcube mail代码审计笔记

    以下笔记适用于 Roundcube mail 1.4.4 代码结构 ├─bin // 涉及到更新的相关bash脚本 ├─config //配置文件 ├─installer // 安装目录 ├─ spellchecker │ ├─localization // 语言文件 │ ├─resources │ └─steps // 核心路由文件 │ ├─addressbook │ ├─mail │ ├─auth_sasl │ ├─console_commandline │ ├─console_getopt │ ├─crypt_gpg │ ├─mail_mime │ ├─net_socket │ ├─pear-core-minimal │ └─pear_exception └─roundcube 在审计roundcube mail

    1.5K10编辑于 2023-02-21
  • 来自专栏我的博客

    Centos配置支持mail函数

    实验证明一切:(不过我还是建议使用PHPmailer:http://www.0377joyous.com/archives/536.html) 在本机中写mail函数发送邮件程序 我安装了sendmail

    1.3K50发布于 2018-05-07
  • 来自专栏王亚昌的专栏

    用Evolution收发Mail啦!

         我有两个mailbox,sohu和gmail的,下面分别介绍设置方法。 I sohu的设置 1 . 点击Forward进入Receiving Email设置。在Server Type中选择POP。如果你不知道选择哪个选项,你需要到Email提供商的网站查找或者直接咨询你的Email提供商。在Server栏中输入 pop3.sohu.com。Use Secure Connection选项这里选择Never,你也可以选择Whenever Possible,具体看你的Email提供商所提供的方式。点击Check for Supported Types查找Email服务器支持的Authentication Type,这里我选择PassWord。然后你可以看是否需要选上Remeber password选项。 2 . 点击Forward进入Receiving Options设置。如果你不知道里面的选项是什么意思,你就一个也不用选择。 3. 点 击Forward进入Sending Email设置。Server Type选择SMTP。在Server栏中输入smtp.sohu.com,并且选上Server requires authentication,Use Secure Connection选择同上。在Authentication的Type栏中选择Login。 4. 你已经完成sohu.com的Email设置了。一直点击Forward直到完成。 II gmail的设置     gmail事的设置方法与sohu大致相同,不同的是pop server添为pop.gmail.com,而且可以用加密收发的方式。 1 . 首先在Gmail中设置pop:登陆帐号之后点击Setting,进入帐号的设置功能界面,选择启用pop功能。    2. 启动Evolution。 3. 点击“编辑”──首选项。 4. 点击添加(账户)/注:如果你已经设置过gmail账户,则可以点击编辑。 5 在名称里输入你的名字,在请求的信息中全名和电子邮件地址都填写你的Email地址。填好之后点击接收电子邮件标签。 6. 接收电子邮件:服务器类型:POP; 服务器:pop.gmail.com:995 用户名:你的gmail地址,如username@gmail.com 使用安全链接:SSL加密; 记住密码。设置好后点击下一个标签 (POP服务器地址:pop.gmail.com 端口:995支持SSL) 7. 接收选项:按自己喜欢设置,并不影响gmail是否在evolution中工作。 8. 发送电子邮件:服务器类型:smtp; 服务器:smtp.gmail.com;: 465 服务器需要认证:选中; 使用安全链接,SSL加密; 身份验证:用默认的"Plain"; 用户名:同你的邮件地址 ,如username@gmail.com,最后记住密码。(SMTP服务器地址: smtp.gmail.com 端口:465 或者 587 支持SSL ) 9. 默认选项卡可以依喜好设置,或保持默认。 10. 点击应用,完成设置。

    1.9K20发布于 2018-08-03
  • 来自专栏java系列博客

    javax.mail 实现邮件发送

    MailAuthenticator ,用于用户登录认证 package demo.mail; import javax.mail.Authenticator; import javax.mail.PasswordAuthentication "mail.smtp.ssl.trust"; /** * 用户名 */ public static final String MAIL_USERNAME = "mail.username org.slf4j.LoggerFactory; import javax.mail.*; import javax.mail.internet.AddressException; import javax.mail.internet.InternetAddress mail.smtp.socketFactory.fallback=false #Tranport对象才会向SMTP服务器提交用户认证信息 mail.transport.protocol=smtp mail.from =xxx@163.com #ssl被smtp认证 mail.smtp.ssl.trust=smtp.163.com #邮箱用户名 mail.username=xxx@163.com #邮箱密码 mail.password

    4.2K70发布于 2018-06-13
  • 来自专栏CSDN技术博客

    linux 配置mail发送邮件

    yum install -y mailx vi /etc/mail.rc 在最后添加: set from=xxxx@yyy.com set smtp=smtp.yyy.com 测试发送邮件: $ echo Hello World | mail -s test 接受邮件的邮箱

    5.1K30发布于 2021-08-10
  • 来自专栏开源部署

    flask扩展 flask-mail

    一、邮件发送 flask-mail说明 是一个邮件发送的扩展库,使用非常方便 二、安装 pip install flask-mail 三、配置 一定要写在创建Mail对象之前,否则将不起作用 'MAIL_SERVER'] = os.environ.get('MAIL_SERVER', <span class= '</span>] = os.environ.get(<span class="hljs-string">'MAIL_USERNAME', 'MAIL_PASSWORD', '***') # 创建对象 mail = Mail(app) 四、发送邮件 <span class="hljs-meta

    68220编辑于 2022-09-14
  • 来自专栏python前行者

    flask-mail发送邮件

    exts.py 代码如下: from flask_mail import Mail mail = Mail() config.py 代码如下: # 服务器ip地址 MAIL_SERVER = "smtp.qq.com " # 端口号:TLS对应587,SSL对应465 MAIL_PORT = "587" MAIL_USE_TLS = True # MAIL_USE_SSL : 默认为 False # 发送者邮箱 MAIL_USERNAME = "你的qq邮箱" # 发送者QQ邮箱授权码(进入邮箱发送短信申请即可,具体参照下图) MAIL_PASSWORD = "此处为你的QQ邮箱授权码" # 默认发送者 MAIL_DEFAULT_SENDER ( DEBUG=True, MAIL_SERVER='smtp.163.com',#邮箱服务器 MAIL_PORT=465,#端口号 MAIL_USE_SSL=True, #支持ssl协议 MAIL_USERNAME='##',#邮箱账号 MAIL_PASSWORD='##'#授权码 ) mail = Mail(app=app)##创建邮箱对象 发送邮件

    1.8K10发布于 2020-01-13
  • 来自专栏技术趋势

    spring使用e-mail

    org.springframework.context.annotation.PropertySource; import org.springframework.core.env.Environment; import org.springframework.mail.MailSender ; import org.springframework.mail.javamail.JavaMailSenderImpl; @Configuration @ComponentScan(basePackages ; import org.springframework.mail.javamail.JavaMailSender; import org.springframework.mail.javamail.MimeMessageHelper ; import javax.mail.internet.MimeMessage; import java.io.File; /** * * 功能描述:邮件测试 * * @param: * p/13b3d22dfdac https://docs.spring.io/spring-framework/docs/current/reference/html/integration.html#mail

    1.1K30发布于 2020-11-09
  • 来自专栏安恒信息

    Exim SMTP Mail Server漏洞预警

    Exim远程命令执行漏洞 2018年2月5日,有安全研究人员向Exim报告了4.90.1之前版本的Exim SMTP Mail Server存在一个缓冲区溢出漏洞,对应CVE编号:CVE-2018- exim-off-by-one-RCE-exploiting-CVE-2018-6789-en/ 根据公告,缓冲区溢出通过base64() 函数的调用触发,是一个内存越界读的堆溢出漏洞,针对Debian和Ubuntu上实际运行Exim SMTP Mail 网络上Exim部署开放情况 全球分布 通过安恒研究院sumap平台查询,全球Exim SMTP Mail Server主要分布情况如下,包含SMTP_SSL的 465端口和SMTP 25端口。 国内分布 通过安恒研究院sumap平台查询,国内Exim SMTP Mail Server主要分布情况如下,包含SMTP_SSL的 465端口和SMTP 25端口。

    1.8K70发布于 2018-04-09
  • 来自专栏高爽的专栏

    Java Mail(三):Session、Message详解

    ; vendor=Sun Microsystems, Inc; protocol=imaps; type=store; class=com.sun.mail.imap.IMAPSSLStore; vendor ; vendor=Sun Microsystems, Inc; protocol=smtps; type=transport; class=com.sun.mail.smtp.SMTPSSLTransport ; vendor=Sun Microsystems, Inc;        每一行声明了协议名称、类型、实现类、供应商、版本等信息,如果需要自己实现相应的协议,必须按照该格式配置好,Java Mail ("mail.host", "smtp.163.com"); // 发送邮件协议名称 props.setProperty("mail.transport.protocol", "smtp"); "java_mail_001@163.com")); // 暗送人 msg.setRecipient(RecipientType.BCC, new InternetAddress("java_mail

    1.3K80发布于 2018-01-15
  • 来自专栏数据库相关

    Linux mail命令的用法

    编辑/etc/mail.rc ,在最下面填上如下3行: set from=12345678@qq.com smtp=smtp.qq.com set smtp-auth-user=12345678@qq.com mail -s "hello world" test90@126.com < /etc/issue

    3.2K20发布于 2019-09-18
  • 来自专栏码匠的流水账

    使用spring mail发送html邮件

    序 本文展示一下如何使用spring mail来发送html邮件。 maven <! <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-mail +Aw--.26008S3 1505230070,please see http://mail.163.com/help/help_spam_16.htm? ip=123.65.107.103&hostid=smtp7&time=1505230070 at com.sun.mail.smtp.SMTPTransport.issueSendCommand at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1260) at org.springframework.mail.javamail.JavaMailSenderImpl.doSend

    2.1K10发布于 2018-09-17
领券